home *** CD-ROM | disk | FTP | other *** search
-
-
- PoptoXPatch
-
- V 1.0
-
- © 1995 Frank Toepper
-
- Public Domain
-
- presented by Digital Innovations
-
-
- Function:
-
- Programs like TinyMeter or MagicClock which call the functions
- 'WindowToFront' respectively 'WindowToBack' from the intuition-library
- in constant intervalls when 'Pop To Front' or 'Pop To Back' is turned on.
- In this case the system can be caught if you move icons or use menus or
- also if you use programs like PowerSnap (no idea why; the semaphore
- system should properly fix such problems).
- This program tries to avoid needless calls of the functions
- 'WindowToFront' and 'WindowToBack' by patching both functions. This
- patches do nothing if no real reason is given.
-
- And here is what the patches mainly do:
-
- WindowToFront:
- if (win->WLayer != win->WScreen->LayerInfo.top_layer)
- WindowToFront (win);
-
- WindowToBack:
- if (win->WLayer->back)
- if (!(win->WLayer->back->Flags & LAYERBACKDROP))
- WindowToBack (win);
-
- This code fragments should be self-explaining.
- This functionallity can be easy implemented in own programs.
-
-
- Start:
-
- This program can be started from CLI.
- No arguments needed.
- The patches can be removed by starting this program again or by sending
- a break (CTRL-C) to the process called 'PopToXPatch'.
-
-
- Bugs:
-
- This program is a kind of a 'High-Level-Patch' and do not fix the real
- cause, and won't work if you use it with more than one window.
-
-
- Author:
-
- I would be glad to hear from you, if this program works or not :-(.
-
- EMail: toepper@rz.uni-greifswald.de
-
- SMail: Frank Toepper
- Maxim Gorki Str. 5A
- Greifswald
- 17491
- Germany
-